package com.hz.service;

import com.hz.pojo.User;
import com.hz.utils.MassageJson;
import org.apache.ibatis.annotations.Insert;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.List;

public interface UserService {

    public MassageJson<User> findeUserByToken(String token) throws Exception;

    public MassageJson<String> userLogin(String userName, String userPassword) throws Exception;

    public MassageJson<String> out(String token) throws Exception;


    public MassageJson findUserList();

    public MassageJson<Integer> insertUser(String userName,String password);

    void daochu (HttpServletResponse response);

    void daoRu(MultipartFile file) throws IOException;


    void test();
}
